<div id="uploadContactDialog" class="ngdialog ngdialog-theme-default ng-scope" role="alertdialog">
    <div class="ngdialog-overlay">
    </div>
    <div class="ngdialog-content" role="document">
        <div class="row text-center">
            <button class="btn btn-info" ng-click="checkAll()">全选</button>
            <button class="btn btn-warning" ng-click="unCheckAll()">全不选</button>
            <button class="btn btn-info" ng-click="reCheckAll()">反选</button>
            <button class="btn btn-success" ng-click="submitImport()">确认</button>
        </div>
        <div class="row text-center">
            <button class="btn btn-info" ng-click="checkAllUnexist()">选择未存在</button>
            <button class="btn btn-default" ng-init="hide=false" ng-click="hide=!hide">{{hide?"显示已存在":"隐藏已存在"}}</button>
            <button class="btn btn-default" ng-init="unhide=false" ng-click="unhide=!unhide">{{unhide?"显示未存在":"隐藏未存在"}}</button>
        </div>
        <table class="table table-hover">
            <tr ng-repeat="item in body" ng-hide="hide&&exist[$index]||unhide&&!exist[$index]">
                <td>
                    <input type="checkbox" name="body{{$index}}" ng-model="check[$index]" ng-true-value="1" ng-false-value="0" ng-click="pushOrPop($index)">
                </td>
                <td class="{{exist[$index]?'font-red':''}}">
                    {{item[0]}}{{exist[$index]?"(已存在)":""}}
                </td>
                <td>
                    {{item[2]}}
                </td>
            </tr>
        </table>
    </div>
</div>